package ve.edu.ucla.dals.servicio.server;

public class ServletHelperException extends Exception {
	private static final long serialVersionUID = 1L;
	private final int httpCode;
	private final int errorCode;
	
	public ServletHelperException(int httpCode, int errorCode, String message) {
		super(message);
		this.httpCode = httpCode;
		this.errorCode = errorCode;
	}

	public ServletHelperException(int httpCode, int errorCode, String message, Throwable cause) {
		super(message, cause);
		this.httpCode = httpCode;
		this.errorCode = errorCode;
	}

	public int getHttpCode() {
		return httpCode;
	}

	public int getErrorCode() {
		return errorCode;
	}
}
